home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 30
/
Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso
/
Aminet
/
dev
/
c
/
EGCSWOSAlib.lha
/
src.lha
/
HotKey.c
< prev
next >
Wrap
C/C++ Source or Header
|
1998-08-02
|
451b
|
19 lines
#include <libraries/commodities.h>
#include <proto/commodities.h>
CxObj *HotKey(STRPTR description, struct MsgPort *port, long id)
{
CxObj *filter;
if ((filter=CreateCxObj(CX_FILTER,(long)description,NULL)))
{
AttachCxObj(filter, CreateCxObj(CX_SEND, (long)port, id));
AttachCxObj(filter, CreateCxObj(CX_TRANSLATE, NULL, NULL));
if (CxObjError(filter))
{
DeleteCxObjAll(filter); filter=NULL;
}
}
return filter;
}